/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.kramerius.fedoraaccess.exception;

/**
 *
 * @author Martin Řehánek <rehan at mzk.cz>
 */
public class ObjectNotFoundException extends Exception {

    private final String pid;

    /**
     * Creates a new instance of
     * <code>ObjectNotFoundException</code> with the specified detail message.
     *
     * @param pid persistant identifier of the missing object
     */
    public ObjectNotFoundException(String pid) {
        super("Object " + pid + " not found");
        this.pid = pid;
    }

    /**
     *
     * @return persistant identifier of the missing object
     */
    public String getPid() {
        return pid;
    }
}
